#!/bin/sh


$HADOOP_HOME/bin/hadoop fs -rmr output/nodeslocation/$1
$HADOOP_HOME/bin/hadoop jar nodeslocation.jar org.PP.NodesLocation /user/hadoop/input/$1/event_trace/event_trace.tab /user/hadoop/output/nodeslocation/$1 /user/hadoop/input/$1/node/node.tab /user/hadoop/output/nodeslocation/$1/ctd
echo "Result available in /user/hadoop/output/nodeslocation/$1: $HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/nodeslocation/$1/part-00000"
echo "-------------------------"
echo "PRINTING..."
echo "-------------------------"
#$HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/nodeslocation/$1/part-00000
